<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/common/common_taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>梦网工具本</title>
<jsp:include page="/WEB-INF/pages/include/head.jsp"></jsp:include>
<link href="/css/code.css" rel="stylesheet" type="text/css" />
<link href="/css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/generallist.js"></script>
<script type="text/javascript" src="/laypage/laypage.js"></script>
</head>
<body class="off-nav">
	<jsp:include page="/WEB-INF/pages/fc/include/nav.jsp"></jsp:include>
	<div id="main-div">
		<div class="main-left-list">
			<c:if test="${empty generalPage.list }">
				<span style="color:red;">0个通用实体，来新增通用实体吧。
				<a href="/general/toAdd" class="btn btn-default"><i class="cus-add"></i> 新增通用实体</a>
				</span>
			</c:if>
			<div class="main-left-list-area">
				<c:forEach items="${generalPage.list }" var="general">
					<div class="show-unit">
						<div class="main-left-list-title">
							General
							<c:if test="${general.isShare eq 1 }"><i class="cus-star" title="已分享"></i></c:if>
							<c:if test="${general.isTop eq 1 }"><img src="/image/top.gif" title="已置顶"/></c:if>
							 <a href="/general/show/${general.id }">${general.title }</a>
						</div>
						<div class="main-left-list-info">
							<fmt:formatDate value="${general.publishTime }" type="both"/>
							　|　${general.readCount } Views　|　Author： ${loginUser.get("username") }
							　|　<c:if test="${general.isShare eq 1 }">已分享</c:if><c:if test="${general.isShare eq 0 }">未分享</c:if>
						</div>
						<div class="main-left-list-abstract">
							<div class="look-photo">
								<img src="${general.lookPhoto }"/>
							</div>
							<div class="abstract">
								${general.note }
							</div>
						</div>
					</div>
				</c:forEach>
			</div>
			<!-- 分页 -->
			<div id="page" class="page">
				<!-- laypage容器 -->
				<input type="hidden" id="totalPage" value="${generalPage.totalPage }">
			</div>
		</div>
		<div class="main-right-other">
			<a href="/general/toAdd" class="btn btn-default"><i class="cus-add"></i> 新增通用实体</a>
		</div>
	</div>
	<jsp:include page="/WEB-INF/pages/include/copyright.jsp"></jsp:include>
</body>
</html>
